package com.stt.experiment.zjx.gate.base;

import lombok.extern.slf4j.Slf4j;

/**
 * socket 接口基类
 */
@Slf4j
public class BaseAction extends BaseClass{

    /**
     * 检测参数是否完整
     * @param params 参数列表
     */
    protected static void checkNotNullOrBlank(Object... params) throws Exception {
        if (params != null && params.length > 0) {
            for (Object param : params) {
                if (null == param || isBlank(param.toString())) {
                    throw new Exception("参数不完整");
                }
            }
        }
    }

}
